package com.shujia.wyh.day13.homework.drinkdemo;

public class Coffee extends Drink {
    private String mixed;

    public Coffee() {
    }

    public Coffee(int volume, String name, String mixed) {
        super(volume, name);
        this.mixed = mixed;
    }

    public String getMixed() {
        return mixed;
    }

    public void setMixed(String mixed) {
        this.mixed = mixed;
    }

    @Override
    public void show() {
        super.show();
        System.out.println("名称：" + getName());
        System.out.println("添加配料：" + mixed);
        System.out.println("容量：" + getVolume());
    }
}
